#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_064;

TEST_CASE("064_unique_paths_ii", "[064]") {
    SECTION("example 1") {
        std::vector< std::vector<int> > grid{{1,3,1},{1,5,1},{4,2,1}};
        CHECK(Solution().minPathSum(grid) == 7);
    }
    SECTION("example 2") {
        std::vector< std::vector<int> > grid{{1,2,3},{4,5,6}};
        CHECK(Solution().minPathSum(grid) == 12);
    }
}
